"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get("/", controller.home.index);
    router.post("/login", controller.home.login);

    // 添加用户
    router.post("/users", controller.user.create);
    router.get("/users", controller.user.index);
    router.get("/users/student", controller.user.student);

    // 成绩
    router.get("/scores", controller.score.index);
};
